﻿namespace _03_View_Model_MVVM_Basics.Directory.Data
{
	public class DirectoryItem
	{
		/// <summary>
		/// 路径
		/// </summary>
		public string FullPath { get; set; } = "";
		/// <summary>
		/// 文件夹名
		/// </summary>
		public string Name { get { return Type != DirectoryItemType.Drive ? DirectoryStructure.GetName(FullPath) : FullPath; } }
		/// <summary>
		/// 类型
		/// </summary>
		public DirectoryItemType Type { get; set; }
	}
}
